//
//  ShowUserInfo.swift
//  Motion
//
//  Created by 悦月越悦 on 2021/3/6.
//

import SwiftUI

struct NameAndAvatar: View {
    var body: some View {
        VStack(alignment:.leading){
            Image("avatar")
                .squareImage(size: 60)
                .clipShape(Circle())
                .shadow(radius: 10)
                .padding(12)
            HStack{
                Text("喝酸奶的云朵")
                    .font(.system(size: 20))
                    .bold()

                Image("pencil")
                    .squareImage(size: 24)
                Spacer()
            }
        }
    }
}

struct ShowUserInfo_Previews: PreviewProvider {
    static var previews: some View {
        NameAndAvatar()
    }
}
